(function() {
  var $, $$;

  $ = window.jQuery;

  $$ = window.BASE;

  $(function() {
    $$.defaultGradientBG = 'uiBlackGradientBG';
    $$.defaultBoxShadow = 'uiBlackBoxShadow';
    return $(function() {
      $('#welcomeMsg').dialog({
        title: '个人感言',
        closable: false
      });
      $('#articleList').dialog({
        title: '文章分享',
        closable: false
      });
      $('#articleList .article .controlBtn').buttonSet();
      $('#messageBoard').list({
        title: '留言板'
      });
      $('#technologyGuide').dialog({
        title: '我的推荐',
        closable: false
      });
      $('#technologyGuide a').each(function() {
        var obj, tipContent, tipObj;
        obj = $(this);
        tipContent = obj.attr('base-tip');
        tipObj = $('<div class="technologyGuideTip" />').html(tipContent).appendTo('body');
        return tipObj.tip({
          target: obj,
          direction: 'bottom',
          backgroundColor: '#4d4c4c',
          borderColor: '#4d4c4c'
        });
      });
      $('#recommendArticle').dialog({
        title: '推荐文章',
        closable: false
      });
      return $('#plugInList').dialog({
        title: '推荐插件',
        closable: false
      });
    });
  });

}).call(this);
